<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>VIM 键盘操作帮助指南 - 交互版</title>
    <link rel="stylesheet" href="../css/vim_operation.css">

</head>
<body>
    <div class="container">
        <h1>🎯 VIM 键盘操作帮助指南 - 交互版</h1>
        
        <div class="section">
            <h2>🎮 交互式键盘布局图</h2>
            <p style="text-align: center; color: #94a3b8; margin-bottom: 20px;">点击键盘上的按键查看详细功能说明</p>
            <div class="keyboard-layout" id="keyboard">
                <!-- 键盘将通过JavaScript动态生成 -->
            </div>
        </div>

        <div class="command-grid">
            <div class="command-category">
                <h3>常用快捷键</h3>
                <ul class="command-list">
                    <li><span class="command-key">Esc</span><span class="command-desc">返回普通模式</span></li>
                    <li><span class="command-key">i</span><span class="command-desc">进入插入模式</span></li>
                    <li><span class="command-key">h,j,k,l</span><span class="command-desc">方向移动</span></li>
                    <li><span class="command-key">w,b</span><span class="command-desc">单词跳转</span></li>
                    <li><span class="command-key">dd</span><span class="command-desc">删除整行</span></li>
                    <li><span class="command-key">yy</span><span class="command-desc">复制整行</span></li>
                    <li><span class="command-key">p</span><span class="command-desc">粘贴</span></li>
                    <li><span class="command-key">u</span><span class="command-desc">撤销</span></li>
                </ul>
            </div>
        </div>
    </div>

    <!-- 操作详情面板 -->
    <div class="detail-panel" id="detailPanel">
        <h3>按键功能详情</h3>
        <div class="key-display" id="keyDisplay">点击按键查看详情</div>
        <div class="description" id="keyDescription">点击键盘上的任意按键，这里会显示详细的功能说明和使用技巧。</div>
        <div class="examples" id="keyExamples" style="display: none;">
            <h4>使用示例</h4>
            <ul id="examplesList"></ul>
        </div>
    </div>

    <!-- 操作历史 -->
    <div class="history-panel" id="historyPanel">
        <h3>操作历史</h3>
        <div id="historyList"></div>
    </div>

    <!-- 控制面板 -->
    <div class="control-panel">
        <button class="control-btn active" id="toggleSound">🔊 音效</button>
        <button class="control-btn" id="clearHistory">🗑️ 清空历史</button>
        <button class="control-btn" id="showAllKeys">📋 显示所有</button>
        <button class="control-btn" id="practiceMode">🎯 练习模式</button>
    </div>
    <script src="../js/vim_operation.js"></script>

</body>
</html>